import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '问题',
    align: "center",
    dataIndex: 'wenti_dictText'
  },
  {
    title: '选项',
    align: "center",
    dataIndex: 'xuanxiang'
  },
  {
    title: '选项A',
    align: "center",
    dataIndex: 'xuanxianga'
  },
  {
    title: '选项B',
    align: "center",
    dataIndex: 'xuanxiangb'
  },
  {
    title: '选项C',
    align: "center",
    dataIndex: 'xuanxiangc'
  },
  {
    title: '选项D',
    align: "center",
    dataIndex: 'xuanxiangd'
  },
  {
    title: '选项E',
    align: "center",
    dataIndex: 'xuanxiange'
  },
  {
    title: '选项F',
    align: "center",
    dataIndex: 'xuanxiangf'
  },
  {
    title: '选项G',
    align: "center",
    dataIndex: 'xuanxiangg'
  },
  {
    title: '合计',
    align: "center",
    dataIndex: 'heji'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: "问题",
    field: 'wenti',
    component: 'JSelectMultiple',
    componentProps: {
      dictCode: "weitileixing"
    },
    colProps: {span: 6},
  },
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '问题',
    field: 'wenti',
    component: 'JSelectMultiple',
    componentProps:{
      dictCode: "weitileixing"
    },
  },
  {
    label: '选项',
    field: 'xuanxiang',
    component: 'Input',
  },
  {
    label: '选项A',
    field: 'xuanxianga',
    component: 'Input',
  },
  {
    label: '选项B',
    field: 'xuanxiangb',
    component: 'Input',
  },
  {
    label: '选项C',
    field: 'xuanxiangc',
    component: 'Input',
  },
  {
    label: '选项D',
    field: 'xuanxiangd',
    component: 'Input',
  },
  {
    label: '选项E',
    field: 'xuanxiange',
    component: 'Input',
  },
  {
    label: '选项F',
    field: 'xuanxiangf',
    component: 'Input',
  },
  {
    label: '选项G',
    field: 'xuanxiangg',
    component: 'Input',
  },
  {
    label: '合计',
    field: 'heji',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
